Other Classes

The following classes are available globally.

  • The NavigationEventsManager is responsible for being the liaison between MapboxCoreNavigation and the Mapbox telemetry framework.

    See more
  • A NavigationRouteOptions object specifies turn-by-turn-optimized criteria for results returned by the Mapbox Directions API.

    NavigationRouteOptions is a subclass of RouteOptions that has been optimized for navigation. Pass an instance of this class into the Directions.calculate(_:completionHandler:) method.

    See more
  • A NavigationMatchOptions object specifies turn-by-turn-optimized criteria for results returned by the Mapbox Map Matching API.

    NavigationMatchOptions is a subclass of MatchOptions that has been optimized for navigation. Pass an instance of this class into the Directions.calculateRoutes(matching:completionHandler:). method.

    Note: it is very important you specify the waypoints for the route. Usually the only two values for this IndexSet will be 0 and the length of the coordinates. Otherwise, all coordinates passed through will be considered waypoints.

    See more
  • NavigationSettings provides a wrapper for UserDefaults.

    Properties are prefixed and before they are stored in UserDefaults.standard.

    See more
  • A NavigationDirections object provides you with optimal directions between different locations, or waypoints. The directions object passes your request to a built-in routing engine and returns the requested information to a closure (block) that you provide. A directions object can handle multiple simultaneous requests. A RouteOptions object specifies criteria for the results, such as intermediate waypoints, a mode of transportation, or the level of detail to be returned. In addition to Directions, NavigationDirections provides support for offline routing.

    Each result produced by the directions object is stored in a Route object. Depending on the RouteOptions object you provide, each route may include detailed information suitable for turn-by-turn directions, or it may include only high-level information such as the distance, estimated travel time, and name of each leg of the trip. The waypoints that form the request may be conflated with nearby locations, as appropriate; the resulting waypoints are provided to the closure.

    See more
  • ReplayLocationManager replays an array of locations exactly as they were recorded with the single exception of the location’s timestamp which will be adjusted by interval between locations.

    See more
  • The SimulatedLocationManager class simulates location updates along a given route.

    The route will be replaced upon a RouteControllerDidReroute notification.

    See more
  • DefaultStyle is default style for Mapbox Navigation SDK.

    See more
  • NightStyle is the default night style for Mapbox Navigation SDK. Only will be applied when necessary and if automaticallyAdjustStyleForSunPosition.

    See more
  • A view controller containing a grid of buttons the user can use to denote an issue their current navigation experience.

    See more
  • A view that represents the root view of the MapboxNavigation drop-in UI.

    Components

    1. InstructionsBannerView
    2. InformationStackView
    3. BottomBannerView
    4. ResumeButton
    5. WayNameLabel
    6. FloatingStackView
    7. NavigationMapView
    +--------------------+
    |         1          |
    +--------------------+
    |         2          |
    +----------------+---+
    |                |   |
    |                | 6 |
    |                |   |
    |         7      +---+
    |                    |
    |                    |
    |                    |
    +------------+       |
    |  4  ||  5  |       |
    +------------+-------+
    |         3          |
    +--------------------+
    
    See more
  • A manager that handles Style objects. The manager listens for significant time changes and changes to the content size to apply an approriate style for the given condition.

    See more